package com.lnking.lnkingplace.model.request.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author sn
 * @date 2022/3/26
 * @description
 */
@Data
public class UpdatePasswordRequest {

    @ApiModelProperty(value = "旧密码", required = true)
    @NotNull(message = "[oldPassword]不能为空")
    @NotBlank(message = "[oldPassword]不能为空")
    private String oldPassword;

    @ApiModelProperty(value = "新密码", required = true)
    @NotNull(message = "[newPassword]不能为空")
    @NotBlank(message = "[newPassword]不能为空")
    private String newPassword;
}
